From: Florian Müllner Date: Wed, 15 Nov 2023 13:41:07 +0000 (+0100) Subject: st/scroll-view: Change default hscrollbar-policy X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~293 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a190a0830b38a1eccc70b3e95e513cdcc7c71241;p=gnome-shell.git st/scroll-view: Change default hscrollbar-policy It is a bit odd to have different default values for the vertical and horizontal policy, but then that's what we almost always want in practice: Automatic scrolling vertically, and no scrolling horizontally. Part-of: --- diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index e43d1cd1c..8c7636126 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -943,7 +943,7 @@ st_scroll_view_class_init (StScrollViewClass *klass) "Horizontal Scrollbar Policy", "When the horizontal scrollbar is displayed", ST_TYPE_POLICY_TYPE, - ST_POLICY_AUTOMATIC, + ST_POLICY_NEVER, ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); /** @@ -1060,7 +1060,7 @@ st_scroll_view_init (StScrollView *self) StScrollViewPrivate *priv = st_scroll_view_get_instance_private (self); ClutterActor *scrollbar; - priv->hscrollbar_policy = ST_POLICY_AUTOMATIC; + priv->hscrollbar_policy = ST_POLICY_NEVER; priv->vscrollbar_policy = ST_POLICY_AUTOMATIC; priv->hadjustment = g_object_new (ST_TYPE_ADJUSTMENT,